package com.itpuyang.design23.factory.simple;

public class Consumer {

    public static void main(String[] args) {

        Car car = Carfactory.getCar("Tesla");
        Car car1 = Carfactory.getCar("Wuling");

        car.name();
        car1.name();


    }
}
